---
title: 首页
---
{% include head.html %}
{% include banner.html %}

<div class="container">
<div class="post-lists">
  

<ul class="post-list">
  {% assign count=0%}
  {% assign last_week_showed=0%}
  {% for post in site.posts %}
    {% assign current_week = site.time | date: "%Y%W" | minus: 2 %}
    {% assign post_week = post.date | date: "%Y%W" | plus: 0 %}
    {% if last_week_showed == 0 or post.tag != "weekly" %}
      {% if post.tag == "weekly" %}
        {% assign last_week_showed=1%}
      {% endif %}
      {% assign count=count | plus:1 %}
      {% if count <= 12 %}
      <li title="{{ post.title | strip_html }}">
        <a href="{{ post.url }}">
        {% assign paths = post.id | split: '/' %}
        <div class="bnwrap">
          {% if post.tag == "weekly" %}
            <img src="/img/fex-weekly-27/cover.jpg" />
          {% else %}
            <img src="/img/{{paths[4]}}/cover.jpg" onerror="this.src='/public/images/tmp/cover.png'" />
          {% endif %}
        </div>
        <p>{{ post.title | strip_html | truncate: 22 }}</p>
        <span class="date">{{ post.author }} 发布于 {{ post.date | date_to_string }}</span>
        </a>
      </li>
      {% endif %}
    {% endif %}
  {% endfor %}
</ul>
{% for post in site.posts %}
    {% if forloop.index == 12 and forloop.length > 12 %}
    <!-- Pagination links -->
        <div class="getmore">
            <a href="/articles/page2">查看更多</a>
        </div>
      {% endif %}
  {% endfor %}
</div>
{% include sidebar.html %}
</div>

{% include foot.html %}
